/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ficherofiguras;

import java.io.Serializable;

/**
 *
 * @author AULAC
 */
public class Circulo extends Figura implements Serializable{
    
    private float radio;

    public Circulo(float radio, String color) {
        super(color);
        this.radio = radio;
    }

    public float getRadio() {
        return radio;
    }

    public void setRadio(float radio) {
        this.radio = radio;
    }

    @Override
    public String toString() {
        return "Círculo | Radio: "+radio+" | "+super.toString();
    }
    
    @Override
    public float calcularArea(){
        
        return (float)Math.PI*radio*radio;
        
    }
    
}
